package cn.bugio.oauth1demo.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * <h1></h1>
 *
 * @version 1.0
 * @author: Vincent Vic
 * @since: 2021/08/29
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDto implements Serializable {
    @NotNull
    @NotBlank
    @Size(max = 50,min = 4,message = "用户名长度必须再4~50字符之间")
    private String username;
    @NotNull
    @NotBlank
    @Size(max = 20,min = 6,message = "密码长度必须再6~20字符之间")
    private String password;

    private String matchingPassword;
    @NotNull
    @NotBlank
    @Size(max = 50,min = 4,message = "昵称长度必须再4~50字符之间")
    private String name;

    private String email;
    private String phone;
}
